package me.ahoukuse.koala.service;

import com.alibaba.fastjson2.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FileService {
    JSONObject moveFilesTo(List<String> ids, int destFolderId);

    JSONObject copyFilesTo(List<String> ids, int destFolderId);
    JSONObject initChunkUpload(String fileName, String fileHash, int numChunk, int parentId);

    JSONObject chunkUpload(String chunkId, String fileName, int chunkIdx, int chunkSize, MultipartFile chunk, int parentId);
    JSONObject checkChunk(String chunkId, String fileName, int chunkIdx, int chunkSize);

    JSONObject finishChunkUpload(String chunkId, String fileName, int parentId);

}
